<#if customTableInfo.keyFlag>import { OmitPartial } from '/#/utils';</#if>
import { BasicPageParams, BasicModel, BasicFetchResult } from '/@/api/model/baseModel';

export interface Basic${entity}Model {
<#list customTableInfo.tableFieldConfig as field>
    <#if field.comment!?length gt 0>
    /**
     * ${field.comment}
     */
    </#if>
    ${field.propertyName}: ${field.tsType};
</#list>
}
<#if customTableInfo.keyFlag>
/**
* 后台开启id序列化时id类型为字符串，如果没开启id类型就是number,此处用一个动态类型代替，方便生成；
*/
export type ${entity}IDType = Basic${entity}Model['${customTableInfo.keyName}'];

export type Update${entity}Params = OmitPartial<Basic${entity}Model, '${customTableInfo.keyName}'>;

<#else>
export type ${entity}IDType = any;

export type Update${entity}Params = Partial<Basic${entity}Model>;

</#if>
export type ${entity}Params = Partial<Basic${entity}Model>;

export type ${entity}PageSearchParams = BasicPageParams & ${entity}Params;

export type ${entity}ListSearchParams = ${entity}Params;

export type ${entity}Model = BasicModel & Basic${entity}Model;

export type ${entity}PageListGetResultModel = BasicFetchResult<${entity}Model>;

export type ${entity}ListGetResultModel = ${entity}Model[];
